package com.itheima.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * 部门实体类
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("dept")
public class Dept implements Serializable {
    private static final long serialVersionUID=1L;
    @TableId(type= IdType.AUTO)
    private Integer id; //ID
    private Integer pid;//父级id,此部门所属的父级部门对象的id值
    private String name; //部门名称
    private String code; //部门code编码
    private Integer managerId;//部门负责人id
    private String managerName; //部门负责人名称
    private String introduce; //部门介绍
    private String createTime; //创建时间
//    private LocalDateTime updateTime; //修改时间
}
